package com.example.travelservlet.entertainment.dao;

import com.example.travelservlet.entity.Entertainment;
import com.example.travelservlet.entity.Like;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author hxy
 * @date 2023/5/9 11:11
 */

@Mapper
@Repository
public interface EntertainmentMapper {

    List<Entertainment> selectAll(int pageIndex, int pageSize);
    List<Entertainment> findEntertainmentsByCityIdAndEntertainmentIds1(@Param("loginName")String loginName, @Param("cityId")String cityId, @Param("type") String type, @Param("page")Integer page, @Param("size")Integer size);
    List<Entertainment> findSceneries1(int pageIndex, int pageSize);

    List<Entertainment> findFoods1(int pageIndex, int pageSize);
    List<Entertainment> findSceneriesByKeyWord(String key,Integer page,Integer size);

    List<Entertainment> findFoodsByKeyWord(String key,Integer page,Integer size);
}
